
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>CUP概述 · Cup Documentation</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Guannan Ma">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"baidu/CUP","types":["star","watch","fork"],"size":"large"};
    </script>

    
        <link rel="shortcut icon" href='images/cup.logo.jpg' type="image/x-icon">
    
    
        <link rel="bookmark" href='images/cup.logo.jpg' type="image/x-icon">
    
    
        <link rel="apple-touch-icon" href='images/cup.logo.jpg'>
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://github.com/baidu/CUP" target="_blank" class="custom-link">Github Website</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    CUP概述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    用户案例
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="senarios/CommonUserSenario.html">
            
                <a href="senarios/CommonUserSenario.html">
            
                    
                    基础功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="senarios/CommonService.html">
            
                <a href="senarios/CommonService.html">
            
                    
                    通用服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="senarios/GeneralService.html">
            
                <a href="senarios/GeneralService.html">
            
                    
                    快速构建PythonService
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="senarios/AsyncNet.html">
            
                <a href="senarios/AsyncNet.html">
            
                    
                    异步网络通讯协议
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <a target="_blank" href="https://cup.iobusy.com/api-ref/">
            
                    
                    官方文档
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="CommitCode.html">
            
                <a href="CommitCode.html">
            
                    
                    参与社区
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="DevMembers.html">
            
                <a href="DevMembers.html">
            
                    
                    开发人员
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    开发计划
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="RoadMap.html">
            
                <a href="RoadMap.html">
            
                    
                    RoadMap
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="ChangeLog.html">
            
                <a href="ChangeLog.html">
            
                    
                    ReleaseNote
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >CUP概述</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <script async defer src="https://buttons.github.io/buttons.js"></script>

<div>
<a class="github-button" href="https://github.com/baidu/CUP" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star baidu/CUP on GitHub" target="_blank">Star</a>
<a class="github-button" href="https://github.com/baidu/CUP/subscription" data-size="large" data-show-count="true" aria-label="Watch baidu/CUP on GitHub" target="_blank">Watch</a>
<a class="github-button" href="https://github.com/baidu/CUP/issues" data-size="large" data-show-count="true" aria-label="Issue baidu/CUP on GitHub" target="_blank">Issue</a>
</div>

<h1 id="cup&#x4ECB;&#x7ECD;"><a name="cup&#x4ECB;&#x7ECD;" class="plugin-anchor" href="#cup&#x4ECB;&#x7ECD;"><i class="fa fa-link" aria-hidden="true"></i></a>CUP&#x4ECB;&#x7ECD;</h1>
<ul>
<li><a href="#cup&#x4ECB;&#x7ECD;">CUP&#x4ECB;&#x7ECD;</a><ul>
<li><a href="#1-&#x4E0B;&#x8F7D;">1. &#x4E0B;&#x8F7D;</a></li>
<li><a href="#2-&#x5B89;&#x88C5;">2. &#x5B89;&#x88C5;</a></li>
<li><a href="#3-&#x67E5;&#x770B;&#x6587;&#x6863;">3. &#x67E5;&#x770B;&#x6587;&#x6863;</a></li>
<li><a href="#4-&#x95EE;&#x9898;&#x53CD;&#x9988;">4. &#x95EE;&#x9898;&#x53CD;&#x9988;</a></li>
<li><a href="#5-&#x81F4;-&#x656C;-pay-tribute-to">5. &#x81F4;  &#x656C; (Pay Tribute To)</a></li>
<li><a href="#6-&#x53D1;&#x5C55;&#x5386;&#x7A0B;">6. &#x53D1;&#x5C55;&#x5386;&#x7A0B;</a></li>
<li><a href="#7-&#x7528;&#x6237;&#x6848;&#x4F8B;">7. &#x7528;&#x6237;&#x6848;&#x4F8B;</a><ul>
<li><a href="#71-&#x5178;&#x578B;&#x7528;&#x6237;&#x6848;&#x4F8B;">7.1 &#x5178;&#x578B;&#x7528;&#x6237;&#x6848;&#x4F8B;</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<p><strong>1&#x5206;&#x949F;&#x4E86;&#x89E3;Python-Cup&#x57FA;&#x7840;&#x5E93;</strong></p>
<iframe src="//player.bilibili.com/player.html?aid=41856081&amp;bvid=BV1pt411t7Lq&amp;cid=73491550&amp;page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" height="800px" width="800px"> </iframe>

<hr>
<p>&#x5982;&#x679C;&#x4F60;&#x89C9;&#x5F97; CUP &#x5F88;&#x68D2;&#xFF0C;&#x8BF7;&#x5E2E;&#x6211;&#x4EEC; star <a href="https://github.com/baidu/CUP" target="_blank">https://github.com/baidu/CUP</a>
&#xFF0C;&#x5E76;&#x63A8;&#x8350;&#x7ED9;&#x4EB2;&#x670B;&#x7816;&#x53CB;.</p>
<p>&#x66F4;&#x6B22;&#x8FCE;&#x4E3A; CUP &#x64B0;&#x5199; patch&#x3001;&#x65B0; feature&#xFF0C;&#x4E00;&#x8D77;&#x6DFB;&#x7816;&#x52A0;&#x74E6;&#xFF01;</p>
<h2 id="1-&#x4E0B;&#x8F7D;"><a name="1-&#x4E0B;&#x8F7D;" class="plugin-anchor" href="#1-&#x4E0B;&#x8F7D;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x4E0B;&#x8F7D;</h2>
<ul>
<li>git clone CUP or download the released tar balls<ul>
<li><a href="https://github.com/baidu/CUP" target="_blank">https://github.com/baidu/CUP</a></li>
</ul>
</li>
</ul>
<h2 id="2-&#x5B89;&#x88C5;"><a name="2-&#x5B89;&#x88C5;" class="plugin-anchor" href="#2-&#x5B89;&#x88C5;"><i class="fa fa-link" aria-hidden="true"></i></a>2. &#x5B89;&#x88C5;</h2>
<ul>
<li>run bash cmd to install</li>
</ul>
<pre><code class="lang-bash">python setup.py install
</code></pre>
<ul>
<li>pip &#x5B89;&#x88C5;</li>
</ul>
<pre><code class="lang-bash">pip install cup
</code></pre>
<h2 id="3-&#x67E5;&#x770B;&#x6587;&#x6863;"><a name="3-&#x67E5;&#x770B;&#x6587;&#x6863;" class="plugin-anchor" href="#3-&#x67E5;&#x770B;&#x6587;&#x6863;"><i class="fa fa-link" aria-hidden="true"></i></a>3. &#x67E5;&#x770B;&#x6587;&#x6863;</h2>
<p>Cup &#x7684;&#x5B98;&#x65B9; API-REF &#x6587;&#x6863;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x5DE6;&#x4FA7;&#x5B98;&#x65B9;&#x6587;&#x6863;&#x67E5;&#x770B;, &#x4E5F;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x8BBF;&#x95EE;: </p>
<ul>
<li><a href="http://cup.iobusy.com/api-ref" target="_blank">api-ref &#x5E2E;&#x52A9;&#x6587;&#x6863;</a></li>
<li><a href="#7-&#x7528;&#x6237;&#x6848;&#x4F8B;">&#x7528;&#x6237;&#x6848;&#x4F8B;&#x6587;&#x6863;</a></li>
</ul>
<h2 id="4-&#x95EE;&#x9898;&#x53CD;&#x9988;"><a name="4-&#x95EE;&#x9898;&#x53CD;&#x9988;" class="plugin-anchor" href="#4-&#x95EE;&#x9898;&#x53CD;&#x9988;"><i class="fa fa-link" aria-hidden="true"></i></a>4. &#x95EE;&#x9898;&#x53CD;&#x9988;</h2>
<ul>
<li>Open Github Issues</li>
</ul>
<h2 id="5-&#x81F4;--&#x656C;-pay-tribute-to"><a name="5-&#x81F4;--&#x656C;-pay-tribute-to" class="plugin-anchor" href="#5-&#x81F4;--&#x656C;-pay-tribute-to"><i class="fa fa-link" aria-hidden="true"></i></a>5. &#x81F4;  &#x656C; (Pay Tribute To)</h2>
<p>CUP&#x4E2D;&#x76F4;&#x63A5;&#x6216;&#x95F4;&#x63A5;&#x4F7F;&#x7528;&#x4E86;&#x5982;&#x4E0B;module, &#x5411;&#x4EE5;&#x4E0B;&#x793E;&#x533A;&#x9879;&#x76EE;&#x81F4;&#x656C;:</p>
<ul>
<li>Pexpect <a href="http://pexpect.sourceforge.net/" target="_blank">http://pexpect.sourceforge.net/</a> (under MIT license)</li>
<li>Httplib2 <a href="http://code.google.com/p/httplib2/" target="_blank">http://code.google.com/p/httplib2/</a> (under MIT license)</li>
<li>requests <a href="https://github.com/kennethreitz/requests" target="_blank">https://github.com/kennethreitz/requests</a> (under Apache V2 license)</li>
<li>pymysql <a href="https://github.com/PyMySQL/PyMySQL" target="_blank">https://github.com/PyMySQL/PyMySQL</a> (under MIT license)</li>
</ul>
<h2 id="6-&#x53D1;&#x5C55;&#x5386;&#x7A0B;"><a name="6-&#x53D1;&#x5C55;&#x5386;&#x7A0B;" class="plugin-anchor" href="#6-&#x53D1;&#x5C55;&#x5386;&#x7A0B;"><i class="fa fa-link" aria-hidden="true"></i></a>6. &#x53D1;&#x5C55;&#x5386;&#x7A0B;</h2>
<p>&#x5BF9; CUP &#x6765;&#x8BF4;, 15&#x5E74;&#x672B;16&#x5E74;&#x521D;&#x662F; CUP &#x5EFA;&#x8BBE;&#x7684;&#x5206;&#x6C34;&#x5CAD;.</p>
<p><strong>2016&#x5E74;&#x524D;Cup&#x521D;&#x521B;&#x9636;&#x6BB5;Utilization&#x662F;&#x5EFA;&#x8BBE;&#x7684;&#x91CD;&#x70B9;.</strong>
CUP&#x521D;&#x8877;&#x5E76;&#x4E0D;&#x590D;&#x6742;&#xFF0C; &#x5C31;&#x662F;&#x6734;&#x7D20;&#x7684;&#x76EE;&#x6807;&#xFF1A; <code>&#x964D;&#x4F4E;&#x4EBA;&#x529B;</code>&#x3002;</p>
<p>&#x5F53;&#x65F6;&#x7684;&#x80CC;&#x666F;&#x662F;&#xFF0C;</p>
<ul>
<li>&#x6211;&#x4EEC;&#x7684;&#x89C2;&#x5BDF;&#xFF0C;Python&#x4F5C;&#x4E3A;&#x80F6;&#x6C34;&#x8BED;&#x8A00;&#xFF0C;&#x7F16;&#x7801;&#x4E0A;&#x624B;&#x7279;&#x522B;&#x5BB9;&#x6613;&#xFF0C;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;&#x4E5F;&#x6BD4;&#x8F83;&#x7075;&#x6D3B;&#xFF0C;&#x5C11;&#x91CF;&#x4EE3;&#x7801;&#x53EF;&#x4EE5;&#x6784;&#x5EFA;&#x5927;&#x7684;&#x573A;&#x666F;&#xFF0C;&#x8FD9;&#x662F;&#x5979;&#x7684;&#x4F18;&#x70B9;&#x3002;</li>
<li>&#x4F46;&#x5E94;&#x7528;&#x8FC7;&#x7A0B;&#x4E2D;&#x7075;&#x6D3B;&#x6027;&#x4E5F;&#x4E0E;&#x5197;&#x4F59;&#x4EE3;&#x7801;&#x3001;&#x6DF7;&#x4E71;&#x65E0;&#x5E8F;&#x7684;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;&#x4F34;&#x751F;&#x3002;&#x77ED;&#x65F6;&#x95F4;&#x5FEB;&#x901F;&#x5B9E;&#x73B0;&#x6B20;&#x5F97;&#x6280;&#x672F;&#x503A;&#x603B;&#x4F1A;&#x5728;&#x540E;&#x9762;&#x67D0;&#x4E2A;&#x65F6;&#x6BB5;&#x7206;&#x53D1;&#xFF0C;&#x800C;&#x4E14;&#x5E26;&#x6765;&#x7684;&#x4EBA;&#x529B;&#x6D88;&#x8017;&#x548C;&#x65F6;&#x95F4;&#x6210;&#x672C;overweigh&#x524D;&#x9762;&#x62A2;&#x5F97;&#x90A3;&#x4E00;&#x70B9;&#x65F6;&#x95F4;&#x3002;</li>
</ul>
<p>&#x4E8E;&#x662F;&#x628A;&#x5E38;&#x7528;&#x7684;&#x573A;&#x666F;&#x62BD;&#x8C61;&#x51FA;&#x6765;&#xFF0C; <code>&#x6807;&#x51C6;&#x5316;</code>&#x5E76;<code>&#x51CF;&#x5C11;&#x91CD;&#x590D;&#x9020;&#x8F6E;&#x5B50;</code>&#x6210;&#x4E3A;&#x6211;&#x4EEC;&#x6700;&#x597D;&#x7684;&#x9009;&#x62E9;. &#x4E3E;&#x4F8B;&#x6765;&#x8BF4;&#xFF1A;</p>
<ul>
<li><p>&#x51CF;&#x5C11;&#x91CD;&#x590D;&#x9020;&#x8F6E;&#x5B50;</p>
<ul>
<li>&#x914D;&#x7F6E;&#x6587;&#x4EF6; cup.util.conf<ul>
<li>&#x4E0E;c/c++ comcfg/configure&#x5E93;100%&#x517C;&#x5BB9;</li>
<li>&#x652F;&#x6301;&#x5C06; configure &#x5E93;&#x6620;&#x5C04;&#x4E3A;py dict, &#x4EE5;&#x53CA;pydict &#x56DE;&#x5199;&#x5230;&#x6587;&#x4EF6;</li>
</ul>
</li>
<li>&#x53EF;&#x6253;&#x65AD;&#x7EBF;&#x7A0B; cup.thread</li>
<li>&#x53D1;&#x77ED;&#x4FE1;/&#x56DE;&#x90AE;&#x4EF6;/&#x67E5;noah cup.bidu</li>
<li>&#x7B49;&#x7B49;</li>
</ul>
</li>
<li><p>&#x6807;&#x51C6;&#x5316;</p>
<ul>
<li>&#x65E5;&#x5FD7;&#x6807;&#x51C6;&#x5316;&#x6253;&#x5370; cup.log<ul>
<li>&#x53C2;&#x8003;&#x6587;&#x7AE0;<a href="https://testing.googleblog.com/2013/06/optimal-logging.html" target="_blank">Optimal logging / googleblog</a></li>
</ul>
</li>
<li>Shell &#x6267;&#x884C;&#x6807;&#x51C6;&#x5316; cup.shell<ul>
<li>timeout &#x8D85;&#x65F6;&#x5904;&#x7406;&#x6807;&#x51C6;&#x5316;</li>
<li>&#x56DE;&#x8FD4;&#x4FE1;&#x606F;&#x5904;&#x7406;&#x6807;&#x51C6;&#x5316;</li>
<li>expect(exe &amp; scp&#x7CFB;&#x5217;)&#x5904;&#x7406;&#x6807;&#x51C6;&#x5316;</li>
</ul>
</li>
<li>&#x7B49;&#x7B49;</li>
</ul>
</li>
</ul>
<p>&#x968F;&#x7740;&#x65F6;&#x95F4;&#x63A8;&#x79FB;, &#x4F7F;&#x7528; CUP &#x7684;&#x9879;&#x76EE;&#x8D8A;&#x6765;&#x8D8A;&#x591A;(&#x8D85;&#x8FC7;50+). &#x539F;&#x56E0;&#x6765;&#x8BF4;&#x65E0;&#x5916;&#x4E4E;&#x4E09;&#x4E2A;:</p>
<ul>
<li>&#x8D28;&#x91CF;&#x5C1A;&#x4F73;</li>
<li>&#x6587;&#x6863;&#x9F50;&#x5168;</li>
<li>&#x6301;&#x7EED;&#x4EA4;&#x4ED8;</li>
</ul>
<p>16&#x5E74;&#x521D;, CUP &#x5DF2;&#x6CA1;&#x6709;&#x6700;&#x521D;&#x7D27;&#x8FEB;&#x7684;&#x751F;&#x5B58;&#x538B;&#x529B;(&#x662F;&#x5426;&#x53EF;&#x4EE5;&#x624E;&#x6839;&#x751F;&#x957F;), &#x8F6C;&#x800C;&#x8003;&#x8651;&#x4E00;&#x4E2A;&#x957F;&#x671F;&#x5EFA;&#x8BBE;&#x57FA;&#x7840;&#x5E93;&#x7684;&#x6837;&#x5B50;.</p>
<hr>
<p><strong>2016&#x81F3;&#x4ECA;, CUP &#x76EE;&#x6807;: &#x4E3A;&#x5FEB;&#x901F;&#x6784;&#x5EFA;Python Serivce&#x63D0;&#x4F9B;&#x670D;&#x52A1;</strong>.</p>
<p>&#x5728;&#x7ECF;&#x8FC7;&#x4E86;&#x534A;&#x5E74;&#x5DE6;&#x53F3;&#x7684;&#x8003;&#x5BDF;&#x548C;&#x51B3;&#x7B56;(&#x4E3B;&#x8981;&#x662F;&#x72B9;&#x8C6B;&#x4E0D;&#x5B9A;,&#x53EF;&#x505A;&#x7684;&#x8303;&#x56F4;&#x5F88;&#x5927;. &#x4F46;&#x603B;&#x8981;&#x6709;&#x53D6;&#x820D;&#x548C;&#x6536;&#x655B;)&#xFF0C;&#x6211;&#x4EEC;&#x786E;&#x5B9A;&#x4E86;&#x652F;&#x6301;&#x6784;&#x5EFA;Python Service&#x7684;&#x957F;&#x671F;&#x7A33;&#x5B9A;&#x76EE;&#x6807;&#x3002;</p>
<ul>
<li>&#x957F;&#x671F;&#x4EE3;&#x8868;&#x8BE5;&#x76EE;&#x6807;&#x4F1A;&#x6301;&#x7EED;&#x4EA4;&#x4ED8;</li>
<li>&#x7A33;&#x5B9A;&#x4EE3;&#x8868;&#x4E0D;&#x4F1A;&#x968F;&#x4FBF;&#x52A8;&#x6447;&#xFF0C; &#x4E0D;&#x4F1A;&#x968F;&#x7740;&#x65B0;&#x5174;&#x7684;&#x6280;&#x672F;&#x8BC9;&#x6C42;&#x6D8C;&#x73B0;&#x800C;&#x6DF7;&#x6DC6;&#x6838;&#x5FC3;&#x76EE;&#x6807;&#x3002;&#x5F31;&#x6C34;&#x4E09;&#x5343;&#xFF0C;&#x53EA;&#x53D6;&#x4E00;&#x74E2;&#xFF0C;&#x624D;&#x80FD;&#x996E;&#x5C3D;&#x3002;</li>
</ul>
<h2 id="7-&#x7528;&#x6237;&#x6848;&#x4F8B;"><a name="7-&#x7528;&#x6237;&#x6848;&#x4F8B;" class="plugin-anchor" href="#7-&#x7528;&#x6237;&#x6848;&#x4F8B;"><i class="fa fa-link" aria-hidden="true"></i></a>7. &#x7528;&#x6237;&#x6848;&#x4F8B;</h2>
<h3 id="71-&#x5178;&#x578B;&#x7528;&#x6237;&#x6848;&#x4F8B;"><a name="71-&#x5178;&#x578B;&#x7528;&#x6237;&#x6848;&#x4F8B;" class="plugin-anchor" href="#71-&#x5178;&#x578B;&#x7528;&#x6237;&#x6848;&#x4F8B;"><i class="fa fa-link" aria-hidden="true"></i></a>7.1 &#x5178;&#x578B;&#x7528;&#x6237;&#x6848;&#x4F8B;</h3>
<ul>
<li><p>&#x5FEB;&#x901F;&#x4F7F;&#x7528;cup&#x5F00;&#x5F00;&#x53D1;python&#x7A0B;&#x5E8F;&#xFF0C;&#x53EF;&#x67E5;&#x770B;&#x4E09;&#x7C7B;&#x6587;&#x6863;</p>
<ul>
<li><a href="senarios/CommonUserSenario.html">&#x5E38;&#x7528;lib&#x5E93;&#x652F;&#x6301;&#x573A;&#x666F;</a></li>
<li><a href="senarios/CommonService.html">&#x5E38;&#x7528;lib&#x5E93;&#x670D;&#x52A1;&#x573A;&#x666F;</a></li>
<li><a href="api-ref">&#x5B98;&#x65B9;API&#x6587;&#x6863;</a></li>
</ul>
</li>
<li><p>&#x4F7F;&#x7528;CUP&#x5982;&#x4F55;&#x6784;&#x5EFA;&#x4E00;&#x4E2A;Service&#xFF0C; &#x6B22;&#x8FCE;&#x67E5;&#x770B;</p>
<ul>
<li><a href="senarios/GeneralService.html">Cup Service&#x7BC7;</a>.</li>
</ul>
</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"CUP概述","level":"1.1","depth":1,"next":{"title":"用户案例","level":"1.2","depth":1,"ref":"","articles":[{"title":"基础功能","level":"1.2.1","depth":2,"path":"senarios/CommonUserSenario.md","ref":"senarios/CommonUserSenario.md","articles":[]},{"title":"通用服务","level":"1.2.2","depth":2,"path":"senarios/CommonService.md","ref":"senarios/CommonService.md","articles":[]},{"title":"快速构建PythonService","level":"1.2.3","depth":2,"path":"senarios/GeneralService.md","ref":"senarios/GeneralService.md","articles":[]},{"title":"异步网络通讯协议","level":"1.2.4","depth":2,"path":"senarios/AsyncNet.md","ref":"senarios/AsyncNet.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-sharing","splitter","anchors","sharing-plus","favicon","insert-logo","chinese-video","github-buttons"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"splitter":{},"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"showLevel":false,"mode":"float","pageTop":{"showLevelIcon":true,"level1Icon":"fa fa-hand-o-right","level2Icon":"fa fa-hand-o-right","level3Icon":"fa fa-hand-o-right"}},"favicon":{"shortcut":"./images/cup.logo.jpg","bookmark":"./images/cup.logo.jpg","appleTouch":"./images/cup.logo.jpg"},"github-buttons":{"repo":"baidu/CUP","types":["star","watch","fork"],"size":"large"},"chinese-video":{},"sharing":{"qq":false,"all":["google","facebook","weibo","twitter","qq","qzone","linkedin","pocket"],"douban":false,"facebook":false,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"insert-logo":{"style":"background: none;","url":"http://cup.iobusy.com/cup.logo.png"}},"theme":"default","author":"Guannan Ma","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Cup Documentation","language":"zh-hans","links":{"sidebar":{"Github Website":"https://github.com/baidu/CUP"}},"gitbook":"*","description":"Cup Documentation which you may refer to"},"file":{"path":"README.md","mtime":"2023-01-29T03:54:39.746Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-01-30T11:36:43.723Z"},"basePath":".","book":{"language":"zh-hans"}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

